<?php
class Application_Form_PostComment extends Zend_Form
{
	public function init()
	{
		$this->setMethod(self::METHOD_POST);
		$this->setAction('/post/comment');
		//add the various form elements
		//TODO add more validators
		$this->addElement('hidden', 'id', array(
            'required'   => true,
        ));
        $this->addElement('textarea', 'text', array(
            'label'      => 'Comment:',
            'required'   => true,
            'rows' => 5,
        ));
        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Submit',
        ));
        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
        ));
	}
}